package com.cmyshare.design.strategyAndFactory;

/**
 * @version 1.0
 * @Author cmy
 * @Date 2025/10/13 14:19
 * @desc 银联支付策略
 */
// 银联支付策略
public class UnionPayStrategy implements PaymentStrategy {
    @Override
    public void pay(double amount) {
        System.out.println("使用银联支付: " + amount + "元");
        // 实际支付逻辑：调用银联API等
    }

    @Override
    public String getPaymentType() {
        return "unionpay";
    }
}
